package com.example.demo.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @创建人: ZS
 * @创建时间: 2021/5/1
 * @描述:
 */
@Controller
@RequestMapping("/miaoyan")
public class PageController {
    @RequestMapping("/{path}")
    public String page(@PathVariable(name = "path") String path){
//        System.out.println("page="+path);
        //返回页面的名字即可
        return path;
    }
}
